﻿<script>
var tyvl = $('span[name=EoItemCommentType]').text();
if(tyvl=='positive'){
	$('span[name=EoItemCommentType]').css('color','#009933');
}if(tyvl=='neutral'){
	$('span[name=EoItemCommentType]').css('color','#F09228');
}if(tyvl=='negative'){
	$('span[name=EoItemCommentType]').css('color','#FF0000');
}

function editshippinginfo(obj){
	$('input[name=EoShippingName]').val($('input[name='+obj+'EsaName]').val());
	$('input[name=EoShippingStreet1]').val($('input[name='+obj+'EsaStreet1]').val());
	$('input[name=EoShippingStreet2]').val($('input[name='+obj+'EsaStreet2]').val());
	$('input[name=EoShippingCity]').val($('input[name='+obj+'EsaCity]').val());
	$('input[name=EoShippingState]').val($('input[name='+obj+'EsaState]').val());
	$('input[name=EoShippingPostalCode]').val($('input[name='+obj+'EsaPostalCode]').val());
	$('input[name=EoShippingCountry]').val($('input[name='+obj+'EsaCountry]').val());
	$('input[name=EoShippingTel]').val($('input[name='+obj+'EsaTel]').val());
	var iso = $('input[name='+obj+'EsaCountryIso]').val();
	var sop = '<option value="'+iso+'" selected="selected">'+$('input[name='+obj+'EsaCountry]').val()+' ['+iso+']</option>';
	$('select[name=EoShippingCountryIso]:last option:first').before(sop);
}
</script>
<style>
.XXX .td-name{width:80px;} .xxx-grid-border{border:none; border:#CCC solid 1px;}
.XXX .editBox,.XXX .editBox-or{padding:0px;/*background:url(../Public/Image/icon-doc.png) no-repeat;  padding-left:20px;*/}
.XXX .editBox input,.XXX .input{/*border:none;*/border:1px #ccc solid; height:100%; width:99%; padding:0px; margin:0px;}
.XXX hr{border:none; border-bottom: #09F dotted 1px;}
</style>
<form id='orders-details-Panel-FormHtml'>
<div align="center">
	<center>
	<div style="max-width:800px; background:#FFF; padding:10px;z-index:2;" class="XXX">
		<table width="100%" border="0" cellspacing="0" class="temp-table-gird xxx-grid-border">
		<tr class="hd">
			<td class="td-name"><b>基本信息</b></td>
			<td width="100">&nbsp;</td>
		</tr>
		<notempty name="result">
		<volist name="result" id="vo">
		<tr>
			<td height="113">
				<table width="100%" border="0" cellspacing="1" >
					<tr><td class="td-name">订单号:</td><td><input style="font-weight:bold;" name="o_id" type="text" value="{$result.email}" disabled />&nbsp;</td></tr>
					<tr><td class="td-name">下单时间:</td><td>{$vo.email}&nbsp;</td></tr>
					<tr><td class="td-name">付款时间:</td><td>{$result.email}&nbsp;</td></tr>
					<tr>
					  <td class="td-name">订单状态:</td>
					  <td id='lops_status'><input style="font-weight:bold;" name="lops_status" type="text" value="{$info.lops_status}" disabled /></td>
				  </tr>
					</table>
			</td>
			<td><div style=" margin-left:20px;margin-right:20px;" align="right">
				Subtotal:<span class="{$info.EoCurrency}">{$result.email}</span><br>
				运费:<span class="{$info.EoCurrency}">{$result.email}</span><br><hr/>
				Total:<span class="{$info.EoCurrency}">{$result.email}</span>
				</div>
			</td>
		</tr>
		<tr>
			<td colspan="2">
				<table width="100%" border="0" cellspacing="0" class="temp-table-gird">
					<tr>
						<td class="td-name">留言/备注:</td>
						<td>
							<textarea class="input" name="memo" style="max-height:100px; height:30px; font-size:12px; color:#060;" 
									onkeyup="this.style.height='30px';this.style.height=this.scrollHeight+'px';" 
									onmouseup="this.style.height='30px';this.style.height=this.scrollHeight+'px';"
							>{$result.email}</textarea></td>
					</tr>
				</table>
			
			</td>
			</tr>
		</table>
		<br/>
		<table width="100%" border="0" cellspacing="1" class="temp-table-gird xxx-grid-border">
			<tr class="hd">
				<td colspan="2">货运&nbsp;</td>
				<td colspan="2"></td>
				</tr>
			<tr>
				<td class="td-name">货运方式:</td>
				<td class="editBox">{$result.email}
					</td>
				<td class="td-name">付款状态:</td>
				<td class="editBox">{$result.email}</td>
			</tr>
			<tr>
				<td class="td-name">货运号/TN:</td>
				<td class="editBox"><input name="tn" type="text" value="{$result.email}" /></td>
				</tr>
				</tr>
			</table>		
		<br/>		
		<table width="100%" border="0" cellspacing="0" class="XXX">
		<tr>
			<td>
			<table width="100%" border="0" class="temp-table-gird xxx-grid-border">
				<tr class="hd">
					<td width="50%">运输地址</td>
					<td width="50%">最终运输地址</td>
				</tr>
				<tr>
					<td>
					  <table width="100%" border="0" cellspacing="1" >
							<tr><td class="td-name">名称:</td><td class="editBox"><input name="name" type="text" value="{$result.email}" /></td></tr>
							<tr><td class="td-name">街道:</td><td class="editBox"><input name="stree1" type="text" value="{$result.email}" /></td></tr>
							<tr><td class="td-name">街道2:</td><td class="editBox"><input name="stree2" type="text" value="" /></td></tr>
							<tr><td class="td-name">城市:</td><td class="editBox"><input name="city" type="text" value="{$result.email}" /></td></tr>
							<tr><td class="td-name">省/州:</td><td class="editBox"><input name="state" type="text" value="{$result.email}" /></td></tr>
							<tr><td class="td-name">邮编:</td><td class="editBox"><input name="postalcode" type="text" value="{$result.email}" /></td></tr>
							<tr><td class="td-name">国家:</td><td class="editBox">
							<input name="country" type="text" value="{$result.email}" />
							</td></tr>
							<tr><td class="td-name">电话:</td><td class="editBox"><input name="tell" type="text" value="{$result.email}" /></td></tr>
							<tr><td class="td-name">邮箱:</td><td class="editBox"><input name="email" type="text" value="{$result.email}" /></td></tr>
					</table>
					</td>
					
					<td valign="top" >                    
					<div style="height:138px; overflow-y:scroll;">
						{$result.email}<br>
						{$result.email}<br>
						{$result.email}<br>
						{$result.email}<br>
						<span class="blue">{$result.email}</span>&nbsp;&nbsp;&nbsp;&nbsp;
						<br>
						{$result.email}<br>
						{$result.email}<br>
					</div>
					</td>
				</tr>
			</table>
	
		  </td>
		</tr>
	</table>
	<br/>
	<table width="100%" border="0" class="temp-table-gird xxx-grid-border">
		<tr class="hd">
			<td colspan="2">产品</td>
		</tr>
		
		<tr>
			<td align="center">
				<table width="100%" border="0" cellspacing="1">
					<tr><td class="td-name" style="height:28px;">ali订单编号</td><td>{$result.email}</td></tr>
					<tr><td class="td-name" style="height:28px;">Item Title</td><td>{$result.email}</td></tr>
					<tr><td class="td-name" style="height:28px;">SKU</td><td>{$result.email}</td></tr>	
					<tr><td class="td-name" style="height:28px;">ali订单产品</td><td>ID:{$result.email}</td></tr>
					<tr><td class="td-name" style="height:28px;">价格</td><td>{$result.email}</td></tr>					
					<tr><td class="td-name" style="height:28px;">数量</td><td>{$result.email}</td></tr>
				</table>
			</td>
		</tr>
		<tr>
			<td height="49" colspan="2" align="center">
			<div style="width:80%; border:none;border-top:#0CF 1px solid"></div>
			</td>
		</tr>
		</volist>
		</notempty>
	</table>
</div>
</center>
</div>
</form>
<script>
	function writeMail(itemId){
		new Run.EbayOrders({
			run:'_sendMail',
			runParam:{
				itemId:itemId,sellerId:'{$info.EoSellerId}',
				buyerId:'{$info.EoBuyerId}',
				paypalEmail:'{$info.EoPayerEmail}',
				buyerEmail:'{$info.EoBuyerEmail}',
				serviceEmail:'{$info.ServiceEmail}'
			}
		});
	}
</script>